/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.click.app.service.impl;

import com.click.app.dao.FeatureProductDescriptionDao;
import com.click.app.model.FeatureProductDescription;
import com.click.app.service.FeatureProductDescriptionManager;
import java.util.List;

/**
 *
 * @author orgale
 */
public class FeatureProductDescriptionManagerImpl extends GenericManagerImpl<FeatureProductDescription, Long> implements FeatureProductDescriptionManager {

    FeatureProductDescriptionDao featureProductDescriptionDao;

    public FeatureProductDescriptionManagerImpl(FeatureProductDescriptionDao featureProductDescriptionDao) {
        super(featureProductDescriptionDao);
        this.featureProductDescriptionDao = featureProductDescriptionDao;
    }

    public List<FeatureProductDescription> findById(Long id) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public List<FeatureProductDescription> findFeatureProductDescriptions() {
        return featureProductDescriptionDao.findFeatureProductDescriptions();
    }

    public List<FeatureProductDescription> findFeatureProductDescriptionsName(String name){
        return featureProductDescriptionDao.findFeatureProductDescriptionsName(name);
    }

    public FeatureProductDescription findFeatureProductDescriptionsByName(String name){
        return featureProductDescriptionDao.findFeatureProductDescriptionsName(name).get(0);
    }


    public List<String> featureProductDescriptionsNames(){
        return featureProductDescriptionDao.featureProductDescriptionsNames();
    }
}
